<?php
header('content-type:text/html;charset=utf-8;');
$conn = mysqli_connect('127.0.0.1','root','root','jd');
$id = $_REQUEST['id'];
$sql = "DELETE FROM `cart` WHERE `id`='$id'";
$result = mysqli_query($conn,$sql);
if($result){
	echo json_encode(array("code"=>1));
}else{
	echo json_encode(array("code"=>0));
}

?>